﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Linq;
using NHibernate;

namespace OrmSmackdown.LinqToNHibernate
{
    class OrmSmackdownContext : NHibernateContext
    {
        public OrmSmackdownContext(ISession session)
			: base(session)
		{
		}

        public IOrderedQueryable<NHibernate.Performance> Performance
        {
            get { return Session.Linq<NHibernate.Performance>(); }
        }

        public IOrderedQueryable<NHibernate.Person> People
        {
            get {return Session.Linq<NHibernate.Person>(); }
        }

        public IOrderedQueryable<NHibernate.User> Users
        {
            get { return Session.Linq<NHibernate.User>(); }
        }

        public IOrderedQueryable<NHibernate.Contact> Contacts
        {
            get { return Session.Linq<NHibernate.Contact>(); }
        }

        public IOrderedQueryable<NHibernate.Address> Addresses
        {
            get { return Session.Linq<NHibernate.Address>(); }
        }

        public IOrderedQueryable<NHibernate.Role> Roles
        {
            get { return Session.Linq<NHibernate.Role>(); }
        }

        public IOrderedQueryable<NHibernate.Company> Companies
        {
            get { return Session.Linq<NHibernate.Company>(); }
        }

        public IOrderedQueryable<NHibernate.Portal> Portals
        {
            get { return Session.Linq<NHibernate.Portal>(); }
        }

    }
}
